﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Granite.ComponentModel;

namespace Granite.Commons.Tests.ComponentModel
{
	//[TestClass]
	//public class SetChangedEventArgsTests
	//{

	//	[TestMethod()]
	//	public void SetChangedEventArgsConstructor3_Test1()
	//	{
	//		var result = new SetChangedEventArgs(NotifySetChangedAction.Add, 2);
	//		Assert.AreEqual(NotifySetChangedAction.Add, result.Action, "Action was not set");
	//		Assert.IsNull(result.OldValue, "OldValue should be null");
	//		Assert.AreEqual(2, result.NewValue, "NewValue was not set");
	//	}

	//	[TestMethod()]
	//	public void SetChangedEventArgsConstructor3_Test2()
	//	{
	//		var result = new SetChangedEventArgs(NotifySetChangedAction.Remove, 2);
	//		Assert.AreEqual(NotifySetChangedAction.Remove, result.Action, "Action was not set");
	//		Assert.AreEqual(2, result.OldValue, "OldValue was not set");
	//		Assert.IsNull(result.NewValue, "NewValue should be null");
	//	}


	//	[TestMethod()]
	//	public void SetChangedEventArgsConstructor3_Test4()
	//	{
	//		try
	//		{
	//			var result = new SetChangedEventArgs(NotifySetChangedAction.Reset, 2);
	//			Assert.Fail("Expected an ArgumentOutOfRangeException");
	//		}
	//		catch (ArgumentOutOfRangeException ex)
	//		{
	//			Assert.AreEqual("action", ex.ParamName, "Incorrect parameter name");
	//			Assert.AreEqual(NotifySetChangedAction.Reset, ex.ActualValue, "ActualValue was not set");
	//		}
	//	}

	//	[TestMethod()]
	//	public void SetChangedEventArgsConstructor1_Test1()
	//	{
	//		try
	//		{
	//			var result = new SetChangedEventArgs(NotifySetChangedAction.Add);
	//			Assert.Fail("Expected an ArgumentOutOfRangeException");
	//		}
	//		catch (ArgumentOutOfRangeException ex)
	//		{
	//			Assert.AreEqual("action", ex.ParamName, "Incorrect parameter name");
	//			Assert.AreEqual(NotifySetChangedAction.Add, ex.ActualValue, "ActualValue was not set");
	//		}
	//	}

	//	[TestMethod()]
	//	public void SetChangedEventArgsConstructor1_Test2()
	//	{
	//		try
	//		{
	//			var result = new SetChangedEventArgs(NotifySetChangedAction.Remove);
	//			Assert.Fail("Expected an ArgumentOutOfRangeException");
	//		}
	//		catch (ArgumentOutOfRangeException ex)
	//		{
	//			Assert.AreEqual("action", ex.ParamName, "Incorrect parameter name");
	//			Assert.AreEqual(NotifySetChangedAction.Remove, ex.ActualValue, "ActualValue was not set");
	//		}
	//	}


	//	[TestMethod()]
	//	public void SetChangedEventArgsConstructor1_Test4()
	//	{
	//		var result = new SetChangedEventArgs(NotifySetChangedAction.Reset);
	//		Assert.AreEqual(NotifySetChangedAction.Reset, result.Action, "Action was not set");
	//		Assert.IsNull(result.OldValue, "OldValue should be null");
	//		Assert.IsNull(result.NewValue, "NewValue should be null");
	//	}





	//}
}
